package org.dtrd.modules.faq.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dtrd.modules.content.articles.entity.bean.FaqInfo;
import org.dtrd.modules.content.articles.entity.vo.DtrdExtEmsYwFaqsVO;
import org.dtrd.modules.faq.entity.dto.FaqDetail;
import org.dtrd.modules.faq.entity.dto.FaqListInfo;
import org.dtrd.modules.faq.entity.po.DtrdExtEmsYwFaqs;
import org.dtrd.modules.faq.entity.request.FaqListRequest;

import java.util.List;

/**
 * <p>
 * 知识问答服务类
 * </p>
 *
 * @author QR
 * @since 2021-12-06
 */
public interface IDtrdExtEmsYwFaqsService extends IService<DtrdExtEmsYwFaqs> {

    List<FaqDetail> getFaqList(Integer requestId);

    IPage<DtrdExtEmsYwFaqsVO> getFaqList(Integer pageNum, Integer pageSize, Integer requestId);

    FaqDetail getFaq(Integer dataId);

    boolean saveOrUpdateFaq(FaqDetail dto);

    boolean removeFaq(Integer dataId);

    IPage<FaqListInfo> pageFaq(FaqListRequest request);

    List<FaqInfo> getLatestRecords(int limitSize);

    FaqInfo getFagInfoById(Integer dataId);
}
